package cn.itcast.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 使用feign消费者的启动类
 *
 * @EnableFeignClients：激活Feign
 * @EnableCircuitBreaker：激活hystrix
 * @EnableHystrixDashboard：激活hytrix的web监控平台
 */
@SpringBootApplication
@EntityScan("cn.itcast.order.entity")
@EnableFeignClients
@EnableCircuitBreaker
@EnableHystrixDashboard
public class FeignOrderApplication {

	public static void main(String[] args) {
		SpringApplication.run(FeignOrderApplication.class,args);
	}
}
